package com.whfc.ms.api.fse.service.impl;

import com.whfc.common.result.PageData;
import com.whfc.fse.dto.FseLiftRecordCountDTO;
import com.whfc.fse.dto.FseLiftRecordDTO;
import com.whfc.fse.service.FseRecordService;
import com.whfc.ms.api.fse.service.MsFseLiftRecordService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @author : qzexing
 * @version : 1.0
 * @date : 2020-07-18 11:00
 */
@Service
public class MsFseLiftRecordServiceImpl implements MsFseLiftRecordService {
    @DubboReference(interfaceClass = FseRecordService.class, version = "1.0.0")
    private FseRecordService fseLiftRecordService;

    @Override
    public PageData<FseLiftRecordDTO> list(Integer deptId, Integer pageNum, Integer pageSize, Date startTime, Date endTime, String keyword) {
        return fseLiftRecordService.liftRecordList(deptId, pageNum, pageSize, startTime, endTime, keyword);
    }

    @Override
    public FseLiftRecordCountDTO recordCount(Integer liftId, Date startTime, Date endTime) {
        return fseLiftRecordService.recordCount(liftId, startTime, endTime);
    }
}
